package com.kgc.sbt.mapper;

import com.kgc.sbt.beans.QueryCoupons;
import com.kgc.sbt.beans.UserCoupons;
import com.kgc.sbt.beans.UserCouponsExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserCouponsMapper {
    long countByExample(UserCouponsExample example);

    int deleteByExample(UserCouponsExample example);

    int deleteByPrimaryKey(Integer couponsId);

    int insert(UserCoupons record);

    int insertSelective(UserCoupons record);

    List<UserCoupons> selectByExample(UserCouponsExample example);

    UserCoupons selectByPrimaryKey(Integer couponsId);

    int updateByExampleSelective(@Param("record") UserCoupons record, @Param("example") UserCouponsExample example);

    int updateByExample(@Param("record") UserCoupons record, @Param("example") UserCouponsExample example);

    int updateByPrimaryKeySelective(UserCoupons record);

    int updateByPrimaryKey(UserCoupons record);

    List <QueryCoupons> queryUserCoupons(Integer userId);

    String getCoupons(Integer userId,String couponsNum);

    int deleteByCouponId(Integer couponId);


}